package org.jeecg.modules.mes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 员工工种关联表
 */
@Data
@TableName("mes_employee_work_type")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "mes_employee_work_type对象", description = "员工工种关联表")
public class MesEmployeeWorkType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**
     * 员工ID
     */
    @Excel(name = "员工ID", width = 15)
    @ApiModelProperty(value = "员工ID")
    private String employeeId;

    /**
     * 员工姓名
     */
    @Excel(name = "员工姓名", width = 15)
    @ApiModelProperty(value = "员工姓名")
    private String employeeName;

    /**
     * 工种ID
     */
    @ApiModelProperty(value = "工种ID")
    private String workTypeId;

    /**
     * 工种编码
     */
    @Excel(name = "工种编码", width = 15)
    @ApiModelProperty(value = "工种编码")
    private String workTypeCode;

    /**
     * 工种名称
     */
    @Excel(name = "工种名称", width = 15)
    @ApiModelProperty(value = "工种名称")
    private String workTypeName;

    /**
     * 技能等级(1-初级,2-中级,3-高级)
     */
    @Excel(name = "技能等级", width = 10, dicCode = "skill_level")
    @ApiModelProperty(value = "技能等级(1-初级,2-中级,3-高级)")
    @Dict(dicCode = "skill_level")
    private Integer skillLevel;

    /**
     * 状态(0-停用,1-启用)
     */
    @Excel(name = "状态", width = 10, dicCode = "valid_status")
    @ApiModelProperty(value = "状态(0-停用,1-启用)")
    @Dict(dicCode = "valid_status")
    private Integer status;

    /**
     * 认证日期
     */
    @Excel(name = "认证日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "认证日期")
    private Date certificationDate;

    /**
     * 到期日期
     */
    @Excel(name = "到期日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "到期日期")
    private Date expiryDate;

    /**
     * 认证人
     */
    @Excel(name = "认证人", width = 15)
    @ApiModelProperty(value = "认证人")
    private String certifier;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
